<f:view xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://java.sun.com/jsf/facelets"
   xmlns:h="http://java.sun.com/jsf/html"
   xmlns:c="http://java.sun.com/jsp/jstl/core"
   xmlns:f="http://java.sun.com/jsf/core"
   xmlns:p="http://primefaces.prime.com.tr/ui"
   xmlns:pm="http://primefaces.org/mobile" contentType="text/html">
   <pm:page title="DERP">
      <pm:view id="main">
         <pm:header title="DERP" />
         <h:form prependId="false" >
            <pm:content>
            	<h:panelGrid columns="2">
						<h:outputLabel value="Login:" for="un" />
						<h:inputText id="un" value="#{login.userName}" required="true"
							requiredMessage="Por favor digite seu login" />
						<h:outputLabel value="Senha:" for="pw" />
						<h:inputSecret id="pw" value="#{login.password}" required="true"
							requiredMessage="Por favor digite sua senha" />
					</h:panelGrid>
					<h:commandButton value="Login" action="#{login.onLogon}" />					
					<h:messages layout="table" />

            </pm:content>         
         </h:form>
      </pm:view>
   </pm:page>
</f:view>